package jym.tan.tmdb.method;

import java.net.URL;

import jym.tan.tmdb.TMDB;
import jym.tan.tmdb.bean.AlternativeTitleWrapper;
import jym.tan.tmdb.constant.TMDBConstants;

public class MovieAlternativeTitles extends BaseMethod {

	public MovieAlternativeTitles(TMDB tmdb) {
		super(tmdb, TMDBConstants.BASE_MOVIE, TMDBConstants.ALTERNATIVE_TITLES);
	}
	
	public AlternativeTitleWrapper getAlternativeTitleWrapper(String movieId, String country) throws Exception {
		URL alternativeTitleURL = getUrl(movieId, TMDBConstants.BLANK, country);
		AlternativeTitleWrapper alternativeTitleWrapper = getTMDBObject(alternativeTitleURL, AlternativeTitleWrapper.class);
		return alternativeTitleWrapper;		
	}
}
